home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-07 | 6.1 KB | 156 lines | [TEXT/MPS ] |
- Mac Programming Tutorial Sample Code
-
- Written by Jack A. Littleton
-
- Documentation for TextList--An example List Manager Application
- ---------------------------------------------------------------
-
- This document and all files in this package are copyright © 1990 by
- Jack A. Littleton, All Rights Reserved.
-
- Version 1.0 - January 1, 1990
-
-
- Introduction
- ------------
- This is one of several sample code packages that I developed as research
- for a Macintosh programming tutorial that was written for my senior
- project while a student at California State University, Chico. Since
- the project has been completed, I have decided to release this package
- on a trial-run basis to the public to be of assistance to those learning
- to program the Macintosh.
-
- The original senior project contained information for programming only
- in Pascal, but I started writing in C after getting MPW C in January,
- 1989. I also plan to include assembly source in a later version of this
- package. All the source was written in MPW, version 2.0.2.
-
- LEGAL STUFF
- -----------
- 1. COPYING--This package is being released to the general public for
- use as a learning tool, but is not being released in the
- public domain. You may distribute copies of this package
- only as long as no modifications have been made to the
- documentation or any of the source code files. You cannot
- charge any amount of money for distribution other than fees
- for duplication, including cost of the media (should not
- exceed four dollars). Distribution rights are granted only
- to individuals or non-profit organizations, BUT ARE NOT
- GRANTED TO BUSINESSES OR CORPORATIONS. You can
- use portions of the source code files in this package in
- your programs, or may modify the source code for use in
- your program. You do not need to make any credits in
- your program if you do use any portion of the source code
- in this package.
-
- 2. WARRANTY--Because this package is being provided free of charge,
- there is no warranty for its usefulness. Although the
- source code has been carefully checked, this package is
- being provided "as-is" without warranty of any kind. The
- entire risk of the results and performance of the package
- is assumed by you. If any of the source code files or
- documentation files prove defective in any way, you assume
- the entire cost of all necessary servicing, repair or
- correction.
-
- IN NO EVENT WILL JACK A. LITTLETON BE LIABLE TO YOU FOR
- DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR OTHER
- SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF
- THE USE OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO
- LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
- SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE PACKAGE TO
- OPERATE WITH ANY OTHER PROGRAMS) THIS PACKAGE, EVEN IF YOU
- HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR
- ANY CLAIM BY ANY OTHER PARTY.
-
- By using any file in this package, you agree to be bound by the terms
- listed above.
-
- DISCLAIMER
- ----------
- This package is not a product of, or related to in any way to, California
- State University, Chico.
-
- PROGRAM INFORMATION
- -------------------
- Most of the documentation for the package occurs in the source code files.
- In order to use this package to it's fullest extent, you should have:
- 1) Inside Macintosh (yes, all five volumes! They're worth it!)
-
- 2) A development system. This package was developed with Macintosh
- Programmers Workshop (MPW) version 2.0.2, but should be useful with
- any development system. NOTE: If you do not have MPW, you will
- not be able to open any of the files in the package by double-
- clicking on them. If this is the case, then launch your development
- system, then choose "Open" from the File menu to open the files.
-
- 3) A knowledge of Pascal or C (or both). If you don't, you should
- have some sort of tutorial for the language of your choice. The
- documentation does not contain information about the syntax of the
- language; it only covers Macintosh-related subjects.
-
- FEATURES
- --------
- The application created by the source code contained in this package has the
- following features:
- • Multiple windows with a single list in each window
- • Windows that support growing and zooming
- • Direct text entry into the cells in the list
- • Cut/Copy/Paste between cells in the same list
- • Horizontal and Vertical scrolling
- • User settable options:
- Cell size
- Font & font size
- Indentation of text in the cell
- • The user can set various List flags that affect the way the list
- handles cell selections.
- • "Find" is supported
- • As many of the List Manager routines as possible are shown in the source
- code.
-
- BUGS
- ----
- I have made a thorough check for bugs in the source in this package and found
- the following:
- <<Both these bugs show up only in the C version>>
-
- Window titles don't show what they're supposed to.
-
- The program will crash after quitting when an Adobe screen font was selected
- from the font menu.
-
- A full discussion of bugs is given in the documentation section of the
- source file.
-
- If you do find bugs, let me know at one of the addresses listed below.
-
- ADDRESSES
- ---------
- I mentioned that I'm releasing this package on a trial-run basis at the
- start of this document. I will release other packages if the response to
- this package is good enough. Even though the source has already been
- written, a great deal of work is put into documentation and cleaning up
- the code, and I don't want to do a lot of work for nothing. Other packages
- that I've written include:
-
- • Low-level file manager calls
- • Menus (hierarchical, pop-up, and icons/marks in menus)
- • Dialogs (dialog filters, useritem procedures)
-
- If you liked this package, and want to see more, leave a note saying so to
- one of the following addresses:
-
- ••EMail addresses
- Internet: jackl@csuchico.edu@relay.cs.net *or*
- jack@csufres.csufresno.edu
-
- GEnie: J.LITTLETON
-
- Compu$erve: 76337,232
-
- ••US Mail
- P.O. Box 5301
- Chico, CA 95927
-
- P.S. I just graduated and will be looking for a job Real Soon Now…If you like
- what you see here and need a Mac programmer, let me know.